package cn.edu.scau.cmi.dengzhengyu.objectAdapter;

public class Student implements Study {

	private Person p  = new Person();
	
	public Student(Person p)
	{
		this.p = p;
	}
	
	public Student()
	{
		
	}
	
	public Student(String name,int id)
	{
		p.setID(id);
		p.setName(name);
	}
	
	public Student(String name)
	{
		p.setName(name);
	}
	
	public Student(int id)
	{
		p.setID(id);
	}
	
	public String getName() {
		return p.getName();
	}

	public void setName(String name) {
		p.setName(name);
	}

	public int getID() {
		return p.getID();
	}

	public void setID(int iD) {
		p.setID(iD);
	}
	
	@Override
	public String study() {
		// TODO Auto-generated method stub
		return "好好学习天天向上,我的名字是"+p.getName();
	}

}
